package com.info.zhiduoduo.weixin.formbean.crowdsource;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.info.zhiduoduo.common.validator.IntIn;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CrowdsourceRealNameAuthFormBean {

	@NotBlank
	private String realname;
	@IntIn(value = {1,2}, message = "请选择正确的身份证类型")
	private Integer identityType;
	@NotBlank
	private String idno;
	@NotBlank
	private String acctno;
	@NotBlank
	private String acctphone;
	@NotBlank
	private String bankname;
	@ApiModelProperty("开户行网点名")
	private String openAcctBankName;
	@Positive
	private int bindcompid;
	private String tags;
	private Integer province;
	private Integer city;
	private String address;

	@ApiModelProperty("身份证正面路径")
	private String idfrontimg;
	@ApiModelProperty("身份证反面路径")
	private String idbackimg;

	//身份证正面平台流水号
	@JsonProperty("SFZMOCRPLATSRL")
	@JSONField(name = "SFZMOCRPLATSRL")
	private String SFZMOCRPLATSRL;
	//身份证国徽平台流水
	@JsonProperty("SFGHOCRPLATSRL")
	@JSONField(name = "SFGHOCRPLATSRL")
	private String SFGHOCRPLATSRL;
	//活体检测平台流水
	@JsonProperty("HUITIPLATSRL")
	@JSONField(name = "HUITIPLATSRL")
	private String HUITIPLATSRL;
	//实名认证流水
	@JsonProperty("SFRZDBLATSRL")
	@JSONField(name = "SFRZDBLATSRL")
	private String SFRZDBLATSRL;

	@ApiModelProperty("紧急联系人姓名")
	private String nameOfEmergencyContact;
	@ApiModelProperty("紧急联系人电话")
	private String phoneOfEmergencyContact;
}
